package day3;

import java.util.Scanner;

public class t7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入被除数：");
        int i =sc.nextInt();
        System.out.println("请输入除数：");
        int j =sc.nextInt();
        int sum=0;
        while(i>=j){
            i-=j;
            sum++;
        }
        System.out.println("商："+sum);
        System.out.println("余数："+i);
    }
}
